# Create your views here.
# coding=utf-8
from django.template import Context, loader
from django.http import HttpResponse
#from django.http import HttpResponseRedirect
from django.shortcuts import render_to_response
from django.shortcuts import RequestContext
from eva.models import Problem,Topic,Types

def Index(request):  
    types =  Types.objects.all()
    
    t = loader.get_template('index.html')
    c = Context({
        'types': types,
    })
    return HttpResponse(t.render(c))